﻿using DevExpress.XtraBars;
using DevExpress.XtraEditors;
using DiaoPaiDaYin;
using Luna小店.service;
using Luna小店.UC;
using Luna小店.UC.任务;
using Luna小店.UC.套号管理;
using Luna小店.UC.工序管理;
using Luna小店.UC.库存;
using Luna小店.UC.库存.门店验货;
using Luna小店.UC.查询;
using Luna小店.UC.标签列印;
using Luna小店.UC.样品;
using Luna小店.UC.样品管理;
using Luna小店.UC.款式尺寸;
using Luna小店.UC.款式异常;
using Luna小店.UC.款式管理;
using Luna小店.UC.款式选择;
using Luna小店.UC.物料管理;
using Luna小店.UC.辅料;
using Luna小店.UC.销售管理;
using Luna小店.UC.门店下单.form;
using Luna小店.UC.门店下单.form.工厂订单一览;
using Luna小店.UC.门店下单.form.工厂订单一览.工厂订单检查看板;
using Luna小店.UC.门店下单.form.标准款;
using Luna小店.UC.面料;
using Luna小店.UC.面料库存;
using Luna小店.UC.项目成果管理;
using Luna小店.原型;
using Luna小店.快递打印;
using Luna小店.生产工单;
using mendian;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using 坚山面料维护;
using static Luna小店.UC.门店下单.form.Frm订单一览;
using static Luna小店.UC.门店下单.form.标准款.Frm扫码下单;
using Luna小店.UC.Luna店铺门户;

namespace Luna小店
{
    public partial class FluentMainFrame : DevExpress.XtraBars.FluentDesignSystem.FluentDesignForm
    {
        public FluentMainFrame()
        {
            InitializeComponent();
            this.Text = this.Text + "   登陆用户：" + Frm登陆窗口.storeAssitantDTO.name;
        }

        /// <summary>
        /// 初始化导航
        /// </summary>
        /// <param name="uC"></param>
        private void initNavigationPage(XtraUserControl uC)
        {
            uC.Dock = DockStyle.Fill;
            this.navigationPage库存.Controls.Clear();
            this.navigationPage库存.Controls.Add(uC);
            this.navigationFrame.Pages[0].Show();
        }

        /// <summary>
        /// 初始化panel
        /// </summary>
        /// <param name="frm"></param>
        private void initPanel(Form frm)
        {
            this.navigationPage库存.Controls.Clear();
            //指示窗体显示是否为顶级窗口
            frm.TopLevel = false;
            this.navigationPage库存.Controls.Add(frm);
            frm.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
            frm.Dock = System.Windows.Forms.DockStyle.Fill;
            frm.Show();
        }

        private void ElementBarCode_Click(object sender, EventArgs e)
        {
            this.initPanel(new Frm吊牌打印(1));
        }
        private void accordionControlElement5_Click(object sender, EventArgs e)
        {
            this.initPanel(new Frm吊牌打印(2));
        }


        

        private void ElementStoreOrder_Click(object sender, EventArgs e)
        {
            this.initPanel(new Frm定制下单());
        }

        private void accordionControlElement3_Click(object sender, EventArgs e)
        {
            this.initPanel(new QueryTag());
        }

        private void ElementStockOut_Click(object sender, EventArgs e)
        {
            //this.initPanel(new XtraFrm门店出库());
            this.initPanel(new Frm扫码下单(Enum进出库类型.出库));
        }

        private void ElementShopStockIn_Click(object sender, EventArgs e)
        {
            //this.initPanel(new XtraForm门店验货());
            this.initPanel(new Frm扫码下单(Enum进出库类型.入库));
        }

        private void accordionControlElement4_Click(object sender, EventArgs e)
        {
            this.initPanel(new NotPrinted());
        }

        private void accordionControlElement6_Click(object sender, EventArgs e)
        {
            this.initPanel(new Frm标准款下单());
        }

        private void accordionControlElement20_Click(object sender, EventArgs e)
        {
            this.initPanel(new Frm门店统一下单());
        }

        private void accordionControlElement21_Click(object sender, EventArgs e)
        {
            this.initPanel(new Frm打标());
        }

        private void accordionControlElement6_Click_1(object sender, EventArgs e)
        {
            this.initPanel(new Frm款式一览(1));
        }

        private void accordionControlElement24_Click(object sender, EventArgs e)
        {
            this.initPanel(new Frm款式一览(0));
        }

        private void accordionControlElement23_Click(object sender, EventArgs e)
        {
            this.initPanel(new Frm扫码下单(Enum进出库类型.调拨));
        }

        private void FluentMainFrame_Load(object sender, EventArgs e)
        {
            this.splashScreenManager.ShowWaitForm();
            this.splashScreenManager.SetWaitFormCaption("请稍后,正在加载中....");     // 标题
            this.splashScreenManager.SetWaitFormDescription("正在初始化.....");     // 信息
            ResourceService.synPictureResouces();   //  资源同步
            this.initPanel(new Frm订单一览(Enum订单类别.Luna店铺订单));
            this.splashScreenManager.CloseWaitForm();
        }

        private void accordionControlElement9_Click(object sender, EventArgs e)
        {
            this.initPanel(new Frm下线审核一览());            
        }

        private void accordionControlElement26_Click(object sender, EventArgs e)
        {
            this.initPanel(new Frm面料打码());
        }

        private void accordionControlElement27_Click(object sender, EventArgs e)
        {
            this.initPanel(new Frm门店面料一览());
        }

        private void ElementStock_Click(object sender, EventArgs e)
        {

        }

        private void accordionControlElement30_Click(object sender, EventArgs e)
        {
            this.initPanel(new Frm已付款订单一览());
        }

        private void accordionControlElement32_Click(object sender, EventArgs e)
        {
            this.initPanel(new Frm待办任务());
        }

        private void accordionControlElement34_Click(object sender, EventArgs e)
        {
            this.initPanel(new Frm订单一览());
        }

        private void accordionControlElement37_Click(object sender, EventArgs e)
        {
            this.initPanel(new Frm生产工单("4"));
        }

        private void accordionControlElement35_Click(object sender, EventArgs e)
        {
            this.initPanel(new FrmCADFiles());
        }

        private void accordionControlElement39_Click(object sender, EventArgs e)
        {
            this.initPanel(new Frm样品下单());
        }

        private void accordionControlElement40_Click(object sender, EventArgs e)
        {
            //this.initPanel(new Frm样衣订单一览());
            //this.initPanel(new Frm样衣订单一览新(Enum订单类别.样品订单));
            this.initPanel(new Frm订单一览(Enum订单类别.样品订单));
        }

        private void accordionControlElement42_Click(object sender, EventArgs e)
        {
            this.initPanel(new XtraForm运单打印());
        }

        private void accordionControlElement43_Click(object sender, EventArgs e)
        {
            this.initPanel(new Frm面料上传());
        }

        private void accordionControlElement44_Click(object sender, EventArgs e)
        {
            this.initPanel(new Frm款式面料设计点管理());
        }

        private void accordionControlElement45_Click(object sender, EventArgs e)
        {
            this.initPanel(new Frm款式维护一览(1));
        }

        private void accordionControlElement47_Click(object sender, EventArgs e)
        {
            this.initPanel(new MATERIAL_Protect());            
        }

        private void accordionControlElement49_Click(object sender, EventArgs e)
        {
            this.initPanel(new Frm坚山订单创建());
        }

        private void accordionControlElement50_Click(object sender, EventArgs e)
        {
            this.initPanel(new Frm坚山订单一览(Enum订单类别.坚山订单));
        }

        private void accordionControlElement51_Click(object sender, EventArgs e)
        {
            this.initPanel(new XtraFormEXCEL());
        }

        private void accordionControlElement52_Click(object sender, EventArgs e)
        {
            this.initPanel(new Frm坚山订单一览(Enum订单类别.坚山美国订单));
        }

        private void accordionControlElement53_Click(object sender, EventArgs e)
        {
            this.initPanel(new XtraFormEXCEL());
        }

        private void accordionControlElement55_Click(object sender, EventArgs e)
        {
            this.initPanel(new Frm物料分类());
        }

        private void accordionControlElement56_Click(object sender, EventArgs e)
        {
            this.initPanel(new Frm款式类别维护());
        }

        private void accordionControlElement58_Click(object sender, EventArgs e)
        {
            this.initPanel(new Frm款式());
        }

        private void accordionControlElement59_Click(object sender, EventArgs e)
        {
            this.initPanel(new Form款式尺寸());
        }

        private void accordionControlElement60_Click(object sender, EventArgs e)
        {
            this.initPanel(new Frm款式维护一览(1));
        }

        private void accordionControlElement61_Click(object sender, EventArgs e)
        {
            this.initPanel(new Frm美国坚山水洗标打印());
        }

        private void accordionControlElement62_Click(object sender, EventArgs e)
        {
            this.initPanel(new Frm客户历史信息查询());
        }

        private void accordionControlElement64_Click(object sender, EventArgs e)
        {
            //this.initPanel(new Frm面料一览());
            this.initPanel(new Form进销存门户());
        }

        private void accordionControlElement65_Click(object sender, EventArgs e)
        {
            this.initPanel(new Frm面料采购());
        }

        private void accordionControlElement66_Click(object sender, EventArgs e)
        {
            this.initPanel(new Frm领料出库());
        }

        private void accordionControlElement67_Click(object sender, EventArgs e)
        {
            this.initPanel(new Frm款式维护记录一览());
        }

        private void accordionControlElement68_Click(object sender, EventArgs e)
        {
            this.initPanel(new Frm水洗标模板管理());
        }

        private void accordionControlElement68_Click_1(object sender, EventArgs e)
        {
            this.initPanel(new Form销售门户());
        }

        private void accordionControlElement69_Click(object sender, EventArgs e)
        {
            this.initPanel(new Form样品门户());
        }

        private void accordionControlElement70_Click(object sender, EventArgs e)
        {
            this.initPanel(new Form美国坚山订单看板());
        }

        private void accordionControlElement套号管理_Click(object sender, EventArgs e)
        {
            this.initPanel(new Form套号门户());
        }

        private void accordionControlElement工序_Click(object sender, EventArgs e)
        {
            this.initPanel(new Form工序());
        }

        private void accordionControlElement72_Click(object sender, EventArgs e)
        {
            this.initPanel(new Form项目成果物管理());
        }

        private void accordionControlElement73_Click(object sender, EventArgs e)
        {
            this.initPanel(new FrmM2店铺门户());
        }

        private void accordionControlElement17_Click(object sender, EventArgs e)
        {

        }
    }
}
